import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
  mode: 'history',
  base: "/crux-cisupportfe",
  routes: [{
    path: '/',
    redirect: '/env',
  }, {
    path: '/',
    component: () => import('./views/Home.vue'),
    children: [{
      path: '/env',
      component: () => import('./page/env.vue'),
    }, {
      path: '/app',
      component: () => import('./page/app.vue'),
    }, {
      path: '/deploy',
      component: () => import('./page/deploy.vue'),
    }, {
      path: '/versionInfo',
      component: () => import('./page/versionInfo.vue'),
    }],
  }],
});
